package com.un.ebs.core.config;

import com.un.ebs.core.util.AESTool;
import org.jasypt.encryption.StringEncryptor;

public class EncryptorConfig implements StringEncryptor {

    @Override
    public String encrypt(String message) {
        return AESTool.Encrypt(message);
    }

    @Override
    public String decrypt(String encryptedMessage) {
        return AESTool.Decrypt(encryptedMessage);
    }
}
